<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>小鱼ADMIN</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/public/static/css/font.css">
    <link rel="stylesheet" href="/public/static/css/bgadmin.css">
    <script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <style>
  .layui-input{height:30px;}
  .layui-form-label{line-height: 16px;}
  </style>
  <body>
    <div class="bg-nav">
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="bg-body">
      <div class="layui-row">
        <form class="layui-form ">
          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">提交人：</label>
              <div class="layui-input-inline">
                <input type="text" name="user" lay-verify="" id="user" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">审批人：</label>
              <div class="layui-input-inline">
                <input type="text" name="leader" id= "leader" lay-verify="" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">抄送人：</label>
              <div class="layui-input-inline">
                <input type="text" name="cc" id= "cc" lay-verify="" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">工作类型：</label>
              <div class="layui-input-inline">
                <select name="type" lay-filter="type" id="type">
                    <option value=""></option>
                    <option value="1">请假</option>
                    <option value="2">外勤</option>
                    <option value="3">出差</option>
                    <option value="4">报销</option>
                </select>
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">审批状态：</label>
              <div class="layui-input-inline">
                <select name="status" lay-filter="status" id="status">
                    <option value=""></option>
                    <option value="0">办理中</option>
                    <option value="1">同意</option>
                    <option value="2">驳回</option>
                </select>
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">提交时间从：</label>
              <div class="layui-input-inline">
                <input type="text" class="layui-input" id="start_addtime">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">到：</label>
              <div class="layui-input-inline">
                <input type="text" class="layui-input" id="end_addtime">
              </div>
            </div>
            <a class="layui-btn layui-btn-small"  style="margin-bottom: 10px;" id="search" lay-submit="" lay-filter="search"><i class="layui-icon" >&#xe615;</i></a>
          </div>
        </form>
      </div>

      <table class="layui-table" lay-data="{id: 'id', height:400, url:'/index.php/crm/Workflow/WorkflowDataList', page:true, limit:10, limits:[10,20,30,50]}" lay-filter="demo">
        <thead>
        <tr>
          <th lay-data="{checkbox:true, fixed: true}"></th>
          <th lay-data="{field:'user', align:'center', width:80}">提交人</th>
          <th lay-data="{field:'addtime', width:150, align:'center'}">提交时间</th>
          <th lay-data="{field:'type', width:80, align:'center'}">工作类型</th>
          <th lay-data="{field:'starttime', width:150, align:'center'}">工作开始时间</th>
          <th lay-data="{field:'endtime', width:150, align:'center'}">工作结束时间</th>
          <th lay-data="{field:'reason', width:140, align:'center'}">原因</th>
          <th lay-data="{field:'leavetype', width:80, align:'center'}">请假类型</th>
          <th lay-data="{field:'place', width:120, align:'center'}">外勤/出差地点</th>
          <th lay-data="{field:'reimbursement', width:100, align:'center'}">报销金额</th>
          <th lay-data="{field:'leader', width:80, align:'center'}">审批人</th>
          <th lay-data="{field:'status', width:80, align:'center'}">审批状态</th>
          <th lay-data="{field:'status_reason', width:140, align:'center'}">审批意见</th>
          <th lay-data="{field:'status_time', width:150, align:'center'}">审批时间</th>
          <th lay-data="{field:'cc', width:80, align:'center'}">抄送人</th>
        </tr>
        </thead>
      </table>
    </div>

</body>
<script type="text/javascript" src="/public/static/crm/js/workflow/workflowList.js"></script>

</html>